package com.zhou.org.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
@Data
@ApiModel("用户锁定模型")
public class UserLockDto implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @NotNull
    @Positive
    private Integer userId;

    /**
     * 是否锁定
     */
    @ApiModelProperty("锁定状态")
    @NotNull
    @Min(0)
    private Integer locked;
}
